<?php

namespace app\admin\model\mental;

use think\Model;


class Remark extends Model
{

    // 表名
    protected $name = 'mental_remark';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [];

    public function TestMain()
    {
        return $this->hasOne('TestMain', 'id', 'main_id')->bind('title');
    }
}
